home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource4
/
205_01
/
freq.doc
< prev
next >
Wrap
Text File
|
1979-12-31
|
896b
|
27 lines
-------------------------------------------------------------------------------
FREQ
-------------------------------------------------------------------------------
Format:
freq [< filename]
Purpose:
FREQ is a text filter that takes a sorted list of words from the standard
input and outputs a list of the unique words in the input and the frequency of
their occurrence.
Examples:
Make a list of the unique words in the file named original and print that list
on the printer.
freq <original >prn
Place all of the words in the file named textfile on individual lines, sort
those lines, make a list of how many times the words occurred, and save that
list as the file named wordlist.
words < textfile | sort | freq > wordlist